home *** CD-ROM | disk | FTP | other *** search
- /*
- File: FWSBP2Driver.h
-
- Contains: Include file for sample SBP-2 driver
-
- Version: 1.0
-
- Copyright: © 1998-1999 by Apple Computer, Inc., all rights reserved.
-
- File Ownership:
-
- DRI: Eric Anderson
-
- Other Contact:
-
- Technology: FireWire
-
- Writers:
-
- (EA) Eric Anderson (ewa)
-
- Change History (most recent first):
-
- <FW7> 1/10/99 EA Added support for testing cable power management API.
- <FW6> 1/3/99 EA Added fields to support dummy ORB and chain of ORBs.
- <FW5> 1/3/99 EA Added fields to support testing
- FWGetSBP2NormalCommandObjectIDFromORB_POINTER.
- <FW4> 12/31/98 EA Added support for sending a TARGET RESET management ORB.
- <FW3> 11/18/98 EA Added LUN to global data.
- <FW2> 9/20/98 EA Filled in header comments.
- <FW1> 9/20/98 EA first checked in
- */
-
-
- #ifndef __FWSBP2DRIVER__
- #define __FWSBP2DRIVER__
-
- #ifndef __TYPES__
- #include <Types.h>
- #endif
- #ifndef __FIREWIRE__
- #include <FireWire.h>
- #endif
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import on
- #endif
-
- #if PRAGMA_ALIGN_SUPPORTED
- #pragma options align=mac68k
- #endif
-
- struct FWSBP2DriverDataStruct
- {
- FWReferenceID localFWReferenceID; // Reference to local node.
- FWDriverID fwDriverID; // Our driver ID.
- CSRROMEntryID csrUnitID; // Out unit directory ID.
- UInt32 lun;
-
- FWCommandObjectID loginCommandID; // Login command object
- Boolean login; // True if we're logged in.
- Boolean reconnecting; // True if a reconnect is in progress.
- Boolean reconnectFailed; // True if a reconnect failed.
- UInt32 notificationCounter;
- UInt32 notificationEvent;
- UInt32 notificationLength;
- Ptr notificationMessage;
- FWAddress fetchAgent; // From login response.
-
- FWCommandObjectID dummyOrbID; // ORB command object
- FWCommandObjectID firstOrbID; // ORB command object
- FWCommandObjectID orbID; // ORB command object
- FWCommandObjectID managementORBID; // management ORB command object
- FWCommandObjectID fwAGENT_RESET_ID; // Command object for FWWrite
- FWCommandObjectID fwDOORBELL_ID; // Command object for FWWrite
-
- FWCommandObjectID readORB_POINTER_ID; // command object to read ORB_POINTER with
- FWCommandObjectID powerChangeID; // command object to manage power with
- };
- typedef struct FWSBP2DriverDataStruct
- FWSBP2DriverData,
- *FWSBP2DriverDataPtr;
-
- #if PRAGMA_ALIGN_SUPPORTED
- #pragma options align=reset
- #endif
-
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import off
- #endif
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif /* __FWSBP2DRIVER__ */
-